package com.gc.cscott.domain;

import com.google.common.base.Preconditions;
import java.io.File;

/**
 *
 * 
 * @author root
 */
public class Competitor implements Comparable<Competitor> {
    File basedir;

    public Competitor(File basedir) {
        Preconditions.checkArgument(basedir.isDirectory());
        this.basedir = basedir;
    }

    public File getBasedir() {
        return basedir;
    }

    public String getName(){
        return basedir.getName();
    }

    public int compareTo(Competitor other) {
        return this.getName().compareTo(other.getName());
    }
}
